﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfApp1.Windows
{
    /// <summary>
    /// GrammerPractice.xaml 的交互逻辑
    /// </summary>
    public partial class GrammerPractice : Window
    {
        public const string sqlCon="";
        public readonly string sqlRead;
        public GrammerPractice()
        {
            sqlRead = "";
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            double increaseAmount = 10; // 假设每次增加的高度值
            cylinderPiston.Height += increaseAmount;
            //TranslateTransform transform = cylinderPiston.RenderTransform as TranslateTransform;
            //if (transform == null)
            //{
            //    transform = new TranslateTransform();
            //    cylinderPiston.RenderTransform = transform;
            //}
            //transform.Y -= increaseAmount;
        }
    }
}
